package com.jy.dao;

import com.jy.model.Department;
import com.jy.model.User;
import com.jy.model.Menu;

import java.util.List;

public interface UserDao {
	/**
	 * @return
	 */
	List<User> selectTable();

    User getUser(User user);

    int saveUser(User user);

    List<Department> getDepartment(String dept, String flag,String fatherId);

    List<User> searchUser(String searchUser);

    User getUserInfo(String token);

    User findMailUser(String mail);

    int updateCode(String id);

    User findUserPwd(String mail, String code);

    int updateUserPwd(String mail, String code, String password);

    int getCheckUser(String username);

    int getCheckUserMail(String mailbox);
    List<Menu> menulist(String userid);
}
